﻿using System;
using System.Windows.Controls;
using System.Windows;

namespace Simp.Interpreter
{
	/// <summary>Displays a <see cref="IContentItem"/>.</summary>
	public partial class ContentItemUserControl : UserControl
	{
		/// <summary>Constructor.</summary>
		public ContentItemUserControl()
		{
			InitializeComponent();
		}

		#region OriginalContent Property
		private static readonly DependencyProperty ContentItemProperty = DependencyProperty.Register(
			"ContentItem",
			typeof(IContentItem),
			typeof(ContentItemUserControl),
			new UIPropertyMetadata(null));

		/// <summary>Item of content.</summary>
		public IContentItem ContentItem
		{
			get { return (IContentItem)GetValue(ContentItemProperty); }
			set { SetValue(ContentItemProperty, value); }
		}
		#endregion
	}
}